import { defHttp } from '/@/utils/http/axios';
import { ContentTypeEnum } from '/@/enums/httpEnum';

enum Upi {
  getbudgetCapitalList = '/admin-api/system/budget-capital/page',
  getbudgetCapitalAdd = '/admin-api/system/budget-capital/create',
  getbudgetCapitalEdit = '/admin-api/system/budget-capital/update',
  getbudgetCapitalDelete = '/admin-api/system/budget-capital/delete',
}
/**
 * @description: 资金预算
 */
export const budgetCapitalList = (params?: any) => {
  return defHttp.get<any>({ url: Upi.getbudgetCapitalList, params });
};
export const budgetCapitalAdd = (params?: any) => {
  return defHttp.post<any>({ url: Upi.getbudgetCapitalAdd, params });
};
export const budgetCapitalEdit = (params?: any) => {
  return defHttp.put<any>({ url: Upi.getbudgetCapitalEdit, params });
};
export const budgetCapitalDelete = (params: any) => {
  return defHttp.delete<any>({
    url: Upi.getbudgetCapitalDelete,
    params,
    headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },
  });
};
